package com.atxwq.shop.order.mapper;

import com.atxwq.shop.model.entity.order.OrderItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description TODO
 * @Date 2025/5/23 13:58
 * @Created by 12336
 */

@Mapper
public interface OrderItemMapper {
    /**
     * 添加数据到orderItem表
     * @param orderItem
     */
    void save(OrderItem orderItem);

    /**
     * 根据订单id查询订单项
     * @param id
     * @return
     */
    List<OrderItem> findOrderItemList(Long id);
}
